home *** CD-ROM | disk | FTP | other *** search
/ Adobe Graphics & Publishing SDK 1996 December / Adobe Graphics & Publishing SDK 1996 December.iso / mac / PageMaker 6.5 SDK Mac / SourceCode / PageMakerClassLibrary / Queries / PGetObjectIDInfo.cpp < prev    next >
C/C++ Source or Header  |  1996-08-29  |  1KB  |  66 lines

  1. /*
  2.  *--- PGetObjectIDInfo.cpp ------------------------------------------------
  3.  * Copyright (c) 1995-96 Adobe Systems Incorporated.  All rights reserved.
  4.  * Created on Sun, Oct 22, 1995 @ 4:49 PM by Paul Ferguson.
  5.  *
  6.  * Description:  For notes about this class, refer to the
  7.  * PCL documentation file PGetObjectIDInfo.html
  8.  *-------------------------------------------------------------------------
  9.  */
  10.  
  11. #include "PGetObjectIDInfo.h"
  12. #include "PQuery.h"
  13. #include "PRequestBuf.h"
  14. #include "PReplyBuf.h"
  15.  
  16. PGetObjectIDInfo::PGetObjectIDInfo()
  17. : PListQuery()
  18. {
  19.  
  20. }
  21.  
  22. PGetObjectIDInfo::PGetObjectIDInfo(ePMQuery op)
  23. : PListQuery(op)
  24. {
  25.     Scan();
  26. }
  27.  
  28. void PGetObjectIDInfo::Scan()
  29. {
  30.     PReplyBuf reply(listMom.Current());
  31.  
  32.     reply    >>    nObjectID
  33.             >>    nMaskID
  34.             >>    nGroupID
  35.             >>    nDrawNumber
  36.             >>    cTypeOfObject
  37.             >>    bTransformed
  38.             >>    bLinked
  39.             >>    xLeftOrStart
  40.             >>    yTopOrStart
  41.             >>    xRightOrEnd
  42.             >>    yBottomOrEnd
  43.             >>    xRightOrStart
  44.             >>    yTopOrStart2
  45.             >>    xLeftOrEnd
  46.             >>    yBotOrEnd2;
  47.  
  48.     listMom.Update(reply);
  49. }
  50.  
  51.  
  52. PGetGroupList::PGetGroupList(unsigned long nGroupID)
  53. : PGetObjectIDInfo()
  54. {
  55.     long x;
  56.     PRequestBuf request(&x);
  57.     request << nGroupID;
  58.     
  59.     PQuery query(pm_getgrouplist, request, itsHandle);
  60.     InitHandle();
  61.     InitListMom();
  62.     Scan();
  63. }
  64.  
  65. // end of PGetObjectIDInfo.cpp
  66.